﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Lswweb.Model
{
    /// <summary>
    /// 实体类News 。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    public class NewsInfo
    {
        public NewsInfo()
        {
            this.IsTop = false;
            this.IsHot = false;
            this.DateCreated = DateTime.Now;
            this.AuditingStatus = AuditingStatusType.Approved;
            this.Status = StatusType.Enabled;
        }

        /// <summary>
        /// 
        /// </summary>
        public int NewsId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int NewsCategoryId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool IsHot { get; set; }

        public bool IsTop { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime DateCreated { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Keys { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Summary { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Source { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Promulgator { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ImageUrl { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public StatusType Status { get; set; }

        public AuditingStatusType AuditingStatus { get; set; }

        public string Ver { get; set; }

        public int DisplayOrder { get; set; }
    }

    public class NewsSkinInfo
    {
        public int Id { get; set; }

        public string Skin { get; set; }

        public string Preview { get; set; }
    }
}
